import request from './request.js';




export function getBasicByCode(data) {
	return request(`/welink/getBasicByCode?code=${data.code}`, 'GET',data);
}

export function getlist(data) {
	return request(`/research/info/list?checkStatus=1&isApp=1&pageSize=${data.pageSize}&pageNum=${data.pageNum}&researchName=${data.researchName}`, 'GET', data);
}

// 我的页面列表
export function getlistMe(data) {
	return request(`/research/info/list?isApp=1&userId=${data.userId}&pageSize=${data.pageSize}&pageNum=${data.pageNum}`, 'GET', data);
}

export function getresearchTemplate(data) {
	return request(`/researchTemplate/list?type=${data.type}`, 'GET', data);
}

//新增
export function add(data) {
	return request('/research/info/add', 'post', data,'form');
}



export function edit(data) {
	return request('/research/info/edit', 'post', data,'form');
}



export function getdetails(data) {
	return request(`/research/info/${data.id}`, 'GET', data);
}

